package cn.zhangjie.system.mapper;

import cn.zhangjie.basic.mapper.BasicMapper;
import cn.zhangjie.system.domain.Role;
import org.apache.ibatis.annotations.Param;


import java.util.List;

public interface RoleMapper extends BasicMapper<Role> {


    void saveRoleMenu(@Param("rid") Long id, @Param("xxyyy") List<Long> menus);

    void saveRolePermission(@Param("rid") Long id,@Param("permissions") List<Long> permissions);

    void removeEmployeeRole(Long rid);

    void removeRoleMenu(Long rid);

    void removeRolePermission(Long rid);
}
